#ifndef CONFIGFILEREADER_H
#define CONFIGFILEREADER_H
#include <stdlib.h>
#include <iostream>
#include <fstream>
#include <string>
#include <algorithm>

using namespace std;

class configfilereader
{
public:
    configfilereader(string);
    string getConfigFilename();
    string getFirewallIP();
    string getFirewallAddressList();
    string getFirewallUser();
    string getFirewallPass();
    string getPidFile();
    string getLeasesFile();
    int getListenPort();
    int getScannerThreshold();
    int getAttackLeaseTimeout();
    int getLogLevel();
    string checkOptions();

private:
    string fileName;
    string firewallIP;
    string firewallAddressList;
    string firewallUser;
    string firewallPass;
    string pidFile;
    string leasesFile;
    int listenPort;
    int scannerThreshold;
    int attackLeaseTimeout;
    int logLevel;
    void readConfigFile(string);
};


#endif // CONFIGFILEREADER_H
